package com.kob.backend.controller.order;

import com.kob.backend.service.order.OrderDeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class OrderDeleteController {
    @Autowired
    private OrderDeleteService orderDeleteService;
    @PostMapping("/order/delete/")
    public void deleteorder(@RequestParam Map<String,String> map){
        Integer orderid=Integer.parseInt(map.get("orderid"));
        orderDeleteService.deleteorder(orderid);
    }
}

